package com.kgcx.price.utils;

import org.springframework.util.StringUtils;

import java.util.Map;

public class ValidateUtil
{
    public static Boolean validateMapArrayIsBlank(Map<String, String[]> map, String key)
    {
        Boolean isValidate = true;

        if(map.containsKey(key))
        {
            if(StringUtils.isEmpty(map.get(key)[0]))
            {
                isValidate = false;
            }
        }
        else
        {
            isValidate = false;
        }

        return isValidate;
    }
}
